package org.dromara.hm.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import org.dromara.common.translation.annotation.Translation;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;

/**
 * 销售订单提货、回款对象 hm_sale_order_pick_up
 *
 * @author Hzy
 * @date 2025-01-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hm_sale_order_pick_up")
public class HmSaleOrderPickUp extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 提货记录id
     */
    @TableId(value = "pick_up_id")
    private Long pickUpId;


    /**
     * 销售单产品ID
     */
    private Long saleProductId;


    /**
     * 销售订单
     */
    private Long saleOrderId;

    /**
     * 已提货数量
     */
    private BigDecimal pickUpNum;

    /**
     * 处理时间
     */
    private Date pickUpTime;

    /**
     * 证明材料
     */
    private String file;

    /**
     * 事件类型(提货;回款)
     */
    private String pickUpType;

    /**
     * 商品类型
     */
    private String productType;

    /**
     * 状态
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否删除
     */
    @TableLogic
    private Long delFlag;

    /**
     * 退货数量
     */
    private BigDecimal returnNum;

    /**
     * 关联退款/退货id
     */
    private String relatedRefundId;
    /**
     * 是否关联退款退货单
     */
    private Boolean isRefundRelated;

    /**
     * 回款方式
     */
    private String method;
}
